﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PowerDelivery
{
    public partial class Principal : Form
    {
        public bool logado;
        public Principal()
        {
            InitializeComponent();
        }

        private void comandaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Comanda cmd = new Comanda();
            cmd.MdiParent = this;
            cmd.Show();
        }

        private void Principal_Load(object sender, EventArgs e)
        {
            if (!logado)
            {
                Login ll = new Login();
                ll.ShowDialog();
            }
        }

        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadastroClientes cc = new CadastroClientes();
            cc.MdiParent = this;
            cc.Show();
        }

        private void itemsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadastroSalgado cs = new CadastroSalgado();
            cs.MdiParent = this;
            cs.Show();
        }

        private void tipoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadastroGrupos cg = new CadastroGrupos();
            cg.MdiParent = this;
            cg.Show();
        }

        private void funcionarioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CadastroFuncionario cf = new CadastroFuncionario();
            cf.MdiParent = this;
            cf.Show();
        }

        private void saídaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EntregaSaida es = new EntregaSaida();
            es.MdiParent = this;
            es.Show();
        }

        private void recebimentoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EntregaRecebimento er = new EntregaRecebimento();
            er.MdiParent = this;
            er.Show();
        }
    }
}
